package com.unidt.www.module.third.doc.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.unidt.www.framework.common.util.object.annotation.BeanField;
import com.unidt.www.framework.mybatis.core.dataobject.BaseDO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.apache.commons.lang3.StringUtils;

/**
 * @Author sk
 * @Description:
 * @Date 2022/11/24 14:05
 **/
@Data
@TableName(value = "t_project_plan_info", autoResultMap = true)
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ProjectPlanDo extends BaseDO {

    @TableId
    private Long id;

    private Long projectBusId;

    @ApiModelProperty(value = "项目分年度建设进度计划")
    @BeanField(value = "项目分年度建设进度计划" )
    private String planTime;

    @ApiModelProperty(value = "完成投资")
    @BeanField(value = "完成投资" )
    private String investment;

    @ApiModelProperty(value = "项目实施形象进度")
    @BeanField(value = "项目实施形象进度" )
    private String progress;


    public Boolean validate(){

        if(StringUtils.isBlank(planTime)){
            return false;
        }
        return  true;
    }
}
